<?php

/**
 * Proizvod filter form.
 *
 * @package    marketing
 * @subpackage filter
 * @author     Your name here
 */
class ProizvodFormFilter extends BaseProizvodFormFilter
{
  public function configure()
  {
      $this->setWidgets(array(
      'naziv'                      => new sfWidgetFormInput(array(), array("style"=>"width:100px")),
      'nabavna_cena_od'            => new sfWidgetFormInput(array(), array("style"=>"width:100px")),
      'nabavna_cena_do'            => new sfWidgetFormInput(array(), array("style"=>"width:100px")),
      'kategorija_id'                  => new sfWidgetFormPropelChoice(array('model' => 'Kategorija', 'add_empty' => "-Izaberi-"))


      ));

      $this->getWidgetSchema()->setNameFormat("proizvod[%s]");

      $this->getWidget('nabavna_cena_do')->setLabel('do');
  }
}
